From e9dc0e391d00cf39f27c053f08c4ce16bd2f8764 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 6 Nov 2012 17:50:14 +0100 Subject: [PATCH] cssimage: Fix huge memleak When transitioning gradients, we were leaking the gradient structs. Not good. https://bugzilla.gnome.org/show_bug.cgi?id=687467 --- gtk/gtkcssimagegradient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcssimagegradient.c b/gtk/gtkcssimagegradient.c index 40ee17f508..8497339a3e 100644 --- a/gtk/gtkcssimagegradient.c +++ b/gtk/gtkcssimagegradient.c @@ -79,7 +79,7 @@ fade_pattern (cairo_pattern_t *pattern, cairo_pattern_add_color_stop_rgba (result, o, r, g, b, a * opacity); } - return pattern; + return result; } static cairo_pattern_t * -- 2.30.2